package tech.mobi.child;

import tech.mobi.child.base.BaseAct;
import tech.mobi.child.utils.UserInfo;
import tech.mobi.child.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;

/**
 * 个人中心
 * @author yanglijun 
 * @datetime 2013-03-04
 *
 */
public class SecondClientAct extends BaseAct implements OnClickListener {


	private TextView tvAccount;
	private ProgressBar progress;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.second_client_main);

		progress = (ProgressBar) this.findViewById(R.id.progress);
		tvAccount = (TextView) this.findViewById(R.id.tvAccount);
		tvAccount.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				progress.setVisibility(View.GONE);
				Toast.makeText(SecondClientAct.this, "可以登录试试哦～",
						Toast.LENGTH_LONG).show();

			}
		});
		String strUserName = UserInfo.getUserName(this);
		tvAccount.setText((strUserName==null||"".equals(strUserName))?"游客":strUserName);
		progress.setVisibility(View.VISIBLE);
	}

	@Override
	public void onClick(View v) {
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void refresh(Object... param) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}


}
